import { createStore } from 'vuex'
import createPersistedState from 'vuex-persistedstate'
import user from './modules/user'
import settings from './modules/settings'
import getters from './getters'
import role from './modules/role'

const store = createStore({
  modules: { user, settings, role },
  getters,
  plugins: [createPersistedState()]
})

export default store
